package com.rc.saas.mini.model.member;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.rc.saas.mini.common.base.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author  
 * @Date: 2022-04-24
 */

@ApiModel(value=" member_invite_gain ", description=" 邀请收益记录表 ")
public class MemberInviteGain extends BaseModel{ 

    @ApiModelProperty(value = "ID")
    private Long inviteGainId;
 
    @ApiModelProperty(value = "运营商")
    private String tenantCode;
 
    @ApiModelProperty(value = "邀请人membreID")
    private Long memberId;
 
    @ApiModelProperty(value = "被邀请人membreID")
    private Long invitedMemberId;
 
    @ApiModelProperty(value = "邀请有奖活动ID")
    private Long inviteSettingId;
 
    @ApiModelProperty(value = "被邀请人充电订单ID")
    private Long orderId;
 
    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;
 
    @ApiModelProperty(value = "获得收益")
    private BigDecimal gainAmount;
 
    @ApiModelProperty(value = "1返利，2优惠价")
    private String inviteGainType;
 
    @ApiModelProperty(value = "优惠券张数")
    private Integer tickets;
 
    @ApiModelProperty(value = "优惠券类型ID")
    private Long ticketTypeId;
 
    @ApiModelProperty(value = "null")
    private String createdBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
 
    @ApiModelProperty(value = "null")
    private String lastUpdatedBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTime;
 
    public Long getInviteGainId() {
        return inviteGainId;
    }

    public void setInviteGainId(Long inviteGainId) {
        this.inviteGainId = inviteGainId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getInvitedMemberId() {
        return invitedMemberId;
    }

    public void setInvitedMemberId(Long invitedMemberId) {
        this.invitedMemberId = invitedMemberId;
    }

    public Long getInviteSettingId() {
        return inviteSettingId;
    }

    public void setInviteSettingId(Long inviteSettingId) {
        this.inviteSettingId = inviteSettingId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public BigDecimal getGainAmount() {
        return gainAmount;
    }

    public void setGainAmount(BigDecimal gainAmount) {
        this.gainAmount = gainAmount;
    }

    public String getInviteGainType() {
        return inviteGainType;
    }

    public void setInviteGainType(String inviteGainType) {
        this.inviteGainType = inviteGainType;
    }

    public Integer getTickets() {
        return tickets;
    }

    public void setTickets(Integer tickets) {
        this.tickets = tickets;
    }

    public Long getTicketTypeId() {
        return ticketTypeId;
    }

    public void setTicketTypeId(Long ticketTypeId) {
        this.ticketTypeId = ticketTypeId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

}
